package com.xxrl.hmwork.repository;

import com.xxrl.hmwork.domain.Homework;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author mis
 */
public interface HomeworkRepository extends JpaRepository<Homework,Long> {

    /**
     * 通过标题找到作业
     * 需要保证标题是唯一的
     * @param title 标题
     * @return 作业
     */
    Homework findFirstByTitle(String title) ;
}
